package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceOrderscomboMapper;
import com.ruoyi.service.domain.ServiceOrderscombo;
import com.ruoyi.service.service.IServiceOrderscomboService;

/**
 * 订单服务套餐对应Service业务层处理
 * 
 * @author ZDL
 * @date 2024-11-27
 */
@Service
public class ServiceOrderscomboServiceImpl implements IServiceOrderscomboService 
{
    @Autowired
    private ServiceOrderscomboMapper serviceOrderscomboMapper;

    /**
     * 查询订单服务套餐对应
     * 
     * @param orderscomboId 订单服务套餐对应主键
     * @return 订单服务套餐对应
     */
    @Override
    public ServiceOrderscombo selectServiceOrderscomboByOrderscomboId(Long orderscomboId)
    {
        return serviceOrderscomboMapper.selectServiceOrderscomboByOrderscomboId(orderscomboId);
    }

    /**
     * 查询订单服务套餐对应列表
     * 
     * @param serviceOrderscombo 订单服务套餐对应
     * @return 订单服务套餐对应
     */
    @Override
    public List<ServiceOrderscombo> selectServiceOrderscomboList(ServiceOrderscombo serviceOrderscombo)
    {
        return serviceOrderscomboMapper.selectServiceOrderscomboList(serviceOrderscombo);
    }

    /**
     * 新增订单服务套餐对应
     * 
     * @param serviceOrderscombo 订单服务套餐对应
     * @return 结果
     */
    @Override
    public int insertServiceOrderscombo(ServiceOrderscombo serviceOrderscombo)
    {
        return serviceOrderscomboMapper.insertServiceOrderscombo(serviceOrderscombo);
    }

    /**
     * 修改订单服务套餐对应
     * 
     * @param serviceOrderscombo 订单服务套餐对应
     * @return 结果
     */
    @Override
    public int updateServiceOrderscombo(ServiceOrderscombo serviceOrderscombo)
    {
        return serviceOrderscomboMapper.updateServiceOrderscombo(serviceOrderscombo);
    }

    /**
     * 批量删除订单服务套餐对应
     * 
     * @param orderscomboIds 需要删除的订单服务套餐对应主键
     * @return 结果
     */
    @Override
    public int deleteServiceOrderscomboByOrderscomboIds(Long[] orderscomboIds)
    {
        return serviceOrderscomboMapper.deleteServiceOrderscomboByOrderscomboIds(orderscomboIds);
    }

    /**
     * 删除订单服务套餐对应信息
     * 
     * @param orderscomboId 订单服务套餐对应主键
     * @return 结果
     */
    @Override
    public int deleteServiceOrderscomboByOrderscomboId(Long orderscomboId)
    {
        return serviceOrderscomboMapper.deleteServiceOrderscomboByOrderscomboId(orderscomboId);
    }
}
